package com.saishi.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor

public class Exam {
    int examid;
    String examname;
    String examavatar;
    String examdesc;
    String examquestionids;
    int examscore;
    int examtimelimit;
    Date examstartdate;
    Date examenddate;
    int examcreatorid;
    Date createtime;

    String examoptions;
    String examTriesLimit;
    String examlimit;
    String examanswer;

    public Exam(String examname, String examavatar, String examdesc, String examquestionids, int examscore, int examtimelimit, Date examstartdate, Date examenddate, int examcreatorid, String examoptions, String examTriesLimit, String examlimit, String examanswer) {
        this.examname = examname;
        this.examavatar = examavatar;
        this.examdesc = examdesc;
        this.examquestionids = examquestionids;
        this.examscore = examscore;
        this.examtimelimit = examtimelimit;
        this.examstartdate = examstartdate;
        this.examenddate = examenddate;
        this.examcreatorid = examcreatorid;
        this.examoptions = examoptions;
        this.examTriesLimit = examTriesLimit;
        this.examlimit = examlimit;
        this.examanswer = examanswer;
    }

    public Exam(String examname) {
        this.examname = examname;
    }

    public Exam(String examoptions, String examTriesLimit, String examlimit, String examanswer) {
        this.examoptions = examoptions;
        this.examTriesLimit = examTriesLimit;
        this.examlimit = examlimit;
        this.examanswer = examanswer;
    }



    @Override
    public String toString() {
        return "Exam{" +
                "examid=" + examid +
                ", examname='" + examname + '\'' +
                ", examavatar='" + examavatar + '\'' +
                ", examdesc='" + examdesc + '\'' +
                ", examquestionids='" + examquestionids + '\'' +
                ", examscore=" + examscore +
                ", examtimelimit=" + examtimelimit +
                ", examstartdate=" + examstartdate +
                ", examenddate=" + examenddate +
                ", examcreatorid=" + examcreatorid +
                ", createtime=" + createtime +
                ", examoptions='" + examoptions + '\'' +
                ", examTriesLimit='" + examTriesLimit + '\'' +
                ", examlimit='" + examlimit + '\'' +
                ", examanswer='" + examanswer + '\'' +
                '}';
    }
}
